package com.hqq.service;

import com.hqq.domain.WoocCard;
import com.hqq.domain.WoocCardDetail;
import com.hqq.vo.CardDetailVO;
import com.hqq.vo.CardRemarkVO;
import com.hqq.vo.CardVO;

import java.util.List;

/**
 * WoocCardService
 * Created by heqianqian on 2018/3/25.
 */
public interface WoocCardService {
    /**
     * 查询帖子列表
     *
     * @param sortType 排序类型
     * @param typeId   资源类型
     * @return
     */
    List<CardVO> listCards(Long sortType, Long typeId);

    /**
     * 查询发帖详细信息
     *
     * @param cardId
     * @return
     */
    CardDetailVO getCardDetail(Long cardId);

    /**
     * 发表评论
     *
     * @param userId
     * @param cardId
     * @param remarkContent
     */
    CardRemarkVO publishRemark(Long userId, Long cardId, String remarkContent);

    /**
     * @param userId
     * @param cardTitle
     * @param cardContent
     * @param cardTypeId
     * @return
     */
    WoocCard publishCard(Long userId, String cardTitle, String cardContent, Long cardTypeId);

    /**
     * 删除帖子
     *
     * @param cardId
     */
    void deleteCard(Long cardId);

    WoocCard addCard(String cardTitle, String cardContent, Long typeId, Long userId);
}
